from socket import *

sk = socket(AF_INET, SOCK_DGRAM)
sk.bind(("192.168.14.96", 8080))
msg, addr = sk.recvfrom(1024)


def callback(msg, addr):
    print(msg.decode("utf-8"))
    sk.sendto(msg, addr)
    msg, addr = sk.recvfrom(1024)
    callback(msg, addr)


callback(msg, addr)
